﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NetworkPower.Data.Models.Mapping
{
    public class EquipmentNumberMap: EntityTypeConfiguration<EquipmentNumber>
    {
        public EquipmentNumberMap()
        {
            // Primary Key
            this.HasKey(t => new { t.EquipmentNumberId });
            // Table & Column Mappings
            this.ToTable("EquipmentNumbers");
            this.Property(t => t.EquipmentType).HasColumnName("EquipmentType");
            this.Property(t => t.MaxNo).HasColumnName("MaxNo");
        }
    }
}
